import request from '@/utils/request'

export default {
  save(data) {
    return request({
      url: ``,
      method: 'post',
      data
    })
  },
  // /pMS_Project/index
  // 项目管理列表
  list(page) {
    return request({
      url: `/pMS_Project/index`,
      method: 'get',
      params: { pageIndex: page.index, pageSize: page.size }
    })
  },
  delete(data) {
    return request({
      url: ``,
      method: 'delete',
      data
    })
  },
  // /pMS_Project/info/{id}
  // 项目管理列表
  getById(id) {
    return request({
      url: `/pMS_Project/info/${id}`,
      method: 'get'
    })
  },
  // /pMS_Project/myProject/index/{buildState}
  // 我的项目
  myProject(page,buildState) {
    return request({
      url: `/pMS_Project/myProject/index/${buildState}`,
      method: 'get',
      params: { pageIndex: page.index, pageSize: page.size }
    })
  },
  // /pMS_Project/myProject/getCatagoryList
  // 我的项目分类及数量
  getCatagoryList(page) {
    return request({
      url: `/pMS_Project/myProject/getCatagoryList`,
      method: 'get',
      params: { pageIndex: page.index, pageSize: page.size }
    })
  },

}
